/*
 * @Author: yongtian.hong
 * @Date: 2019-01-12 09:39:54
 * @LastEditors: yongtian.hong
 * @LastEditTime: 2019-01-12 09:42:54
 * @Description: 自适应窗口重置
 */

window.onresize = function() {
  let designSize = 1920; // 设计图尺寸
  let html = document.documentElement;
  let winWidth = html.clientWidth; // 窗口宽度
  let rem = (winWidth * 100) / designSize;
  document.documentElement.style.fontSize = rem + "px";
};
